package com.zmc.common.domain.es;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author：zmc
 * @Date：2024/10/15 15:28
 * 商品sku实体
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class EsSkuEntity extends EsBaseEntity{

    //商品skuId
    public String skuId;

    //商品id
    public String spuId;

    public String merchantId;

    //类目id
    public Long categoryId;

    //类目名称
    public String categoryName;

    //品牌id
    public Long brandId;

    //品牌名称
    public String brandName;

    //品牌图片
    public String brandImg;

    //标题
    public String spuTitle;

    //副标题
    private String spuSubTitle;

    //sku价格
    public BigDecimal skuPrice;

    //sku图片
    public String skuImg;

    //销量
    public Long saleCount;

    //是否有库存
    public boolean hasStock;

    //热卖
    private Long hotScore;

    //销售属性
    private List<EsSkuAttr> attrs;

}
